< previous page page_329 next page >

Page 329
Q&A
Q Why would you need an Internal Application Manager Subsystem?
A Developing applications for any purpose requires some ongoing understanding of how they behave at runtime in different environments. In particular, your application needs to record important transactions that occur between the user and the application.
Q How would you declare objects in the General Declarations section of CApplication?
A Within CApplication, you don't declare each object variable as Global but as Public; Visual Basic doesn't allow you to declare global variables within classes. Only code modules can hold global declarations.
Q How can would-be entrepreneurs and commercial software establishments benefit from such a subsystem?
A If you're an active or would-be entrepreneur, or commercial software establishment, implementing this subsystem adds to the benefits of using classes with regard to troubleshooting and customer support.
Q What events concerning variables are possibly important to log?
A If you want even more detail, you might also record the allocation and deallocation of memory for your significant variables, particularly your business objects and subsystem interface objects. Sometimes, it is helpful to log the stack of function calls, but keep in mind that the more information you log, the more work your application must do.
Q What is the responsibility of the initializeSystem method?
A The initializeSystem method is responsible for safely starting up the system, including global variables. It is equivalent to the Form_Load or Class_Initialize events.
Workshop
The workshop includes quiz questions to help gauge your grasp of the material. You'll find the answers to this quiz in Appendix A, Answers. Even if you feel that you totally understand the concepts presented here, you should work through the quiz anyway. The last section contains exercises for you to work through to help reinforce your learning.

 
< previous page page_329 next page >

If you like this book, buy it!